﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="CustomerContactSystem.Core" namespace="CustomerContactSystem.Core.Model">
  <class name="EnquiryCategory" table="EnquiryCategories">
    <id name="Id">
      <generator class="native" />
    </id>
    <many-to-one name="Department" class="Department" column="DepartmentId" not-null="true" lazy="false" fetch="join" foreign-key="FK_EnquiryCategories_Departments"></many-to-one>
    <property name="CategoryName" not-null="true" length="100" />
    <property name="AvailableForSelection" not-null="true" />
  </class>
</hibernate-mapping>